#include "mainwindowlabeleventfilter.h"

MainWindowLabelEventFilter::MainWindowLabelEventFilter(QObject *parent) : QObject(parent)
{

}

bool MainWindowLabelEventFilter::eventFilter(QObject *watched, QEvent *event)
{
    //鼠标点击事件
    if(event->type()==QEvent::MouseButtonPress)
    {
        emit labelClicked(watched);  //发送点击信号
    }

    return QObject::eventFilter(watched,event);
}
